<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title><{:C('TITLE')}></title>
  <load file="__PUBLIC__/Home/Css/common.css" /> 
  
  <script type="text/javascript" src="__PUBLIC__/jquery-1.8.2.min.js"></script>
  <script type="text/javascript">
  $(function(){
		$(".tijiao").click(function(){
			var numsTr=$('tr').length;
			if(numsTr==1){
				alert("请先获取项目！");
				return 0;
			}
			var score=$("[name='score']").val();
			if(isNaN(score)){
				alert("分数必须为数字！！！"); return 0;
			}
			if(score>100 || score<0){
				$(".reminde").addClass("appear");
				$(".reminde").removeClass("disappear");
				$("[name='score']").val("");
				$("[name='score']").focus();
			}else{
				var comment=$("[name='comment']").val();
				if(score>"<{$configData['high_score_comment']}>" || score<"<{$configData['low_score_comment']}>"){
					if(comment.length==0){
						alert("分数大于95或小于70，必须写出原因(原因必须大于8个字)！！"); return 0;
					}
					if(comment.length<"<{$configData['comment_low_length']}>"){
						alert("原因必须大于8个字！"); return 0;
					}else{
						$(".reminde").addClass("disappear");
						$(".reminde").removeClass("appear");
						$("[name='myform']").submit();
					}
				}else{
						$(".reminde").addClass("disappear");
						$(".reminde").removeClass("appear");
						$("[name='myform']").submit();
				}			
			}
		});
    });
  </script>
  <style  type="text/css">
	.disappear<{display:none;}>
	.appear<{display:inline;color:#f00;font-size:12px}>
  </style>
 </head>
 <body>
	<empty name="Think.session.user_id">
		<{:redirect('Index/index');}>
	<else /> 
		<div class="wrap">
		    <include file="Public/left" /> 
				<!--如果未评论过，显示下面代码-->
				<if condition="$comment_flag eq 0">
					<div class="main">
						<div  class="shadow1 center main1" style="position:relative">
							现在评测的是<font color="#f00" style="font-size:20px;font-family:'华文行楷'" size="5" id="group"><{$projectData[0]['group']}></font>组项目：<br/>
							<font color="#f00"  style="font-size:20px;font-family:'华文行楷'" size="4"><b id="proname"><{$projectData[0]['proname']}></b></font><br/>
							<a href=<{:U('Student/get_project')}>><img src="__PUBLIC__/Home/Image/huoqu.jpg" style="display:block;position:absolute;right:80px;bottom:10px;width:100px;height:80px" title="获取项目"></a>
						</div>
						<div  class="shadow1 center main2" >
							<form name="myform" action="<{:U('score')}>" method="post">
							  <table width="500px"  border=1 cellspacing=0 bordercolor="#f00" class="table_tr20">
								<tr align="middle"><th>项目名称</th><th>年级</th><th>组号</th></tr>
									<tr   align="middle">
										<input type="hidden" name="pro_id" value="<{$projectData[0]['pro_id']}>"/>
										<td class="td1"><{$projectData[0]['proname']}></td>
										<td class="td2"><{$projectData[0]['grade']}></td>
										<td class="td3"><{$projectData[0]['group']}></td>
									</tr>
							  </table>
							  <div class="magtop5" style="margin-top:50px"></div>
							  <div class="radius border1" style="width:440px;padding:20px 30px;background:#31c8f5">
								<label style="font-size:14px;color:#f00;font-weight:700">分数:</label>
								 <input  style="border:2px solid #0055f0;height:20px;width:80px;line-height:20px;font-size:20px;color:#f00;text-align:center;outline:none;" type="text" name="score" placeholder="打分"  class="radius8"/>
								 <div class="magtop5" ></div>
								 <textarea rows="5" cols="56" name="comment" value="" placeholder="分数大于95或小于70，必须写出原因(原因必须大于8个字)！！" style="border:2px solid #0055f0;background:#fff;padding:5px 10px;outline:none;"  class="radius" ></textarea><br/>
							 </div>					  
							 <div class="magtop5" ></div>
							 <a href="#"  class="tijiao" style="padding-left:450px;"><img src="__PUBLIC__/Home/Image/dafen.jpg" style="width:50px;height:50px;" align="bottom"></a>						  </div>
							</form>
						</div>
					</div>
				<else/><!--如果已评论过，显示下面代码-->
					<div class="main">
						<div  class="shadow1 center main1" style="position:relative">
							谢谢您给<font color="#f00" size="5"><{$projectData[0]['group']}></font>组项目评分<br/>
							<font color="#f00" size="4"><b>&nbsp<{$projectData[0]['proname']}></b></font><br/>
							<a href=<{:U('get_project')}>><img src="__PUBLIC__/Home/Image/huoqu.jpg" style="display:block;position:absolute;right:80px;bottom:10px;width:80px;height:50px" title="获取项目"></a>
						</div>
						<div  class="shadow1 center main2" >
						   <{$info}>
						</div>
					</div>
				</if>
			<div class="clear"></div>
		</div>
		<include file="Public/foot" /> 
	</div>
    </empty> 
 </body>
</html>
 